package com.segersten.othello.model;

import com.google.common.base.Predicate;

public class EqualColorPredicate implements Predicate<Brick>
{
    private final Color color;

    public EqualColorPredicate(Color color)
    {
        super();
        this.color = color;
    }

    @Override
    public boolean apply(Brick brick)
    {
        return this.color.equals(brick.getColor());
    }

}
